package com.huyn.baseframework.model;

import java.io.Serializable;
import java.util.LinkedHashMap;

/**
 * Created by huyaonan on 16/6/1.
 */
public class CategorySimple implements Serializable {

    public String launchclass;
    //    public String moduleId;
    public String modelCode;
    public String modelDesc;
    public String modelName;

    public String templateType;
    public String relatedId;

    //为了同一模块的复用起的别名
    public String subModelCode;

    //所有冗余字段都在这里
    public Object modelExtra;

    public Object getStrFromExtra(String key) {
        try {
            if(modelExtra == null)
                return null;
            LinkedHashMap<String, Object> lhm = (LinkedHashMap<String, Object>) modelExtra;
            return lhm.get(key);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

}
